<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<c:set var="picPath" value="http://127.0.0.1:8003/ssmImage19"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<form action="${pageContext.request.contextPath }/user/deleteByIds.do" method="post">
<table width="100%" border=1>
<tr>
<td><input type="submit" value="批量删除"/></td>
</tr>
</table>
<table width="100%" border=1>
<tr>
	<td>ID</td>
	<td>用户名</td>
	<td>生日</td>
	<td>性别</td>
	<td>地址</td>
	<td>操作</td>
</tr>
<c:forEach items="${userlist}" var="user">
<tr>
	<td>
	<input type="checkbox" name="id" value="${user.id }">
	</td>
	<td>${user.username }</td>
	<td>${user.age }</td>
	<td><a href="${pageContext.request.contextPath }/user/edit.do?id=${user.id}">修改</a>
	<a href="${pageContext.request.contextPath }/user/deleteByID.do?id=${user.id}">删除</a>
	</td>

</tr>
</c:forEach>

</table>
</form>
</body>
</html>